package com.yanqu.road.server.cmd.activity.stronghold.wild;

import com.yanqu.road.pb.activity.StrongholdWarProto;
import com.yanqu.road.server.cmd.base.AbstractCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.manger.activity.strongholdwar.StrongholdActivityMgr;
import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.server.protocol.GameProtocol;
import com.yanqu.road.server.protocol.Protocol;

@Cmd(code = GameProtocol.S_STRONGHOLD_WAR_WILD_DATA, desc = "查看单个据点信息")
public class EnterStrongholdWildCmd extends AbstractCommand {

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        return true;
    }

    @Override
    public void execute(GamePlayer player, YanQuMessage packet) throws Exception {
        StrongholdWarProto.CrossGetStrongholdWildDataReqMsg.Builder req = StrongholdWarProto.CrossGetStrongholdWildDataReqMsg.newBuilder();
        req.setActivityId(StrongholdActivityMgr.getOpenActivityInfo().getActivityId());
        player.sendUnionActivityGroupPacket(Protocol.C_CROSS_STRONGHOLD_WAR_SINGLE_WILD_DATA, req, req.getActivityId());
    }

    @Override
    public void sendData(GamePlayer player) {

    }
}
